import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';

class SubBillingHeaderItem extends StatelessWidget {
  final String title;
  final Widget widget;
  final Widget trailing;

  SubBillingHeaderItem({Key key, this.title, this.widget, this.trailing})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
        Row(
          children: [
            Text(
              title,
              style: TextStyle(
                color: aceBlackColor,
                fontSize: getSp(16),
                fontWeight: FontWeight.w700,
                height: 22 / 16,
              ),
            ),
            if (widget != null) widget,
          ],
        ),
        if (trailing != null) trailing,
      ],
    );
  }
}
